package com.ktwlsoft.archivemanage.payload.department;

import com.ktwlsoft.archivemanage.domain.dao.entity.Department;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 部门管理修改
 *
 * @author zhuhe on 2019/11/1 9:30
 * @version 1.0
 */
@ApiModel("部门管理修改")
@Getter
@Setter
public class DepartmentManageUpdateRequest {

    /**id*/
    @ApiModelProperty("id")
    private Long id;

    /**部门名称**/
    @ApiModelProperty("部门名称")
    @Size(max = 30, message = "部门名称参数超长")
    @NotNull(message = "部门名称不能为空")
    private String department;

    /**状态(NORMAL(正常), DELETED(删除), FORBIDDEN(禁用))**/
    @ApiModelProperty("状态(NORMAL(正常), DELETED(删除), FORBIDDEN(禁用))")
    private Department.State state;

    /**旧值**/
    @ApiModelProperty("旧值")
    @NotNull(message = "旧值不能为空")
    private String oldValue;

    /**新值**/
    @ApiModelProperty("新值")
    @NotNull(message = "新值不能为空")
    private String newValue;
}